﻿@{
    var t_supplier = (Model.Translations as IEnumerable<dynamic>)
        .SingleOrDefault(x => JDM.Int32(x.Language.EntityID) ==
            JDM.Int32(Svc.Localization.Language.EntityID));
}

<div class="box unit-overview catalog-supplier">
    <header>
        <h3><a href="@Url.Action(Loc.Act("Show").Set(new
        {
            id = JDM.Int32(Model.EntityID)
        }).Localized())">@(t_supplier != null ? JDM.String(t_supplier.Name) : JDM.String(Model.EntityID))</a></h3>
    </header>
    <section>
    @{
        Html.RenderPartial("_Image");
    }
    </section>
    <section>
    @{
        Html.RenderPartial("_ShortDescription");
    }
    </section>
</div>
